/**
 * 明明的随机数
 * */
const rl = require("readline").createInterface({ input: process.stdin });

const allInputNum = []

rl.on('line', (line) => {
  allInputNum.push(line)
  if (allInputNum[0] == allInputNum.length - 1) {
    const map = {}
    for (let i = 0; i < allInputNum.length; i ++) {
      i > 0 && (map[allInputNum[i]] = true)
    }
    
    
    Object.keys(map).forEach(o => console.log(o))
  }
})
